package com.wu.mapper;

import com.wu.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {

    public void save (Order order);

    public List<Order> findallByUid(int index,int limit,long uid);

    public int countByUid(long uid);

    //下面这两个方法是为了管理员界面的订单审核的
    public List<Order> findAll(int index,int limit);
    public void updateState(long id);
    public int count();

}
